package com.example.common.interceptor;

import com.example.core.config.GlobalConfig;
import feign.RequestInterceptor;
import feign.RequestTemplate;

/**
 * 统一添加fiegn请求token头
 */
public class FeignAddHeaderRequestInterceptor implements RequestInterceptor {
    @Override
    public void apply(RequestTemplate template) {

        template.header("FiegnToken", GlobalConfig.serverName);
    }
}
